<!DOCTYPE html>

<html>
	<head>
		<meta charset="UTF-8"/>
		<link href="template/css/Site_inscription.css" type="text/css" rel="stylesheet"/>
		<title>Site_inscription</title>
	</head>
	
	<body>
		<?php
			include('header.html');
		?>
		<section id="content">
			<form method="POST" action="create_bien.php">
				Spécifications du bien:<br/><br/>
				<label for="type">Type de bien :</label> <select name="type" id="type">
				<?php
					while($type = $result_type->fetch_object()) {
				?>
					<option value="<?php echo $type->id; ?>"><?php echo $type->libelle ?></option>
				<?php
					}
				?>
				</select><br/><br/>
				<label for="surface">Surface (m²) :</label> <input type="number" name="surface" id="surface"/><br/><br/>
				<label for="adresse">Adresse :</label> <input type="text" name="adresse" id="adresse"/><br/><br/>
				<label for="code">Code postale / Zip code :</label> <input type="text" name="code" id="code"/><br/><br/>
				<label for="ville">Ville :</label> <input type="text" name="ville" id="ville"/><br/><br/>
				<label for="pays">Pays :</label> <input type="text" name="pays" id="pays"/><br/><br/>
				<label for="prix_semaine">Prix semaine :</label><input type="number" name="prix_semaine" id ="prix_semaine"/><br/><br/>
				<label for="prix_journee">Prix journée :</label> <input type="number" name="prix_journee" id ="prix_journee"/><br/><br/>
					Devise : <select name = "devise">
						<option> € </option>
						<option> $ </option>
						<option> £ </option>
					</select><br/><br/>
				<label for="description">Description :</label><br/><textarea name="description" id="description" cols = "60" rows = "5"></textarea><br/><br/>
				<label for="photo_couv">Photo couverture :</label> <input type="file" name="photo_couv" id="photo_couv"/><br/><br/>
				<input type="submit" value="Créer le bien" />
			</form>
		</section><br/>
		
		<?php
			include('footer.html');
		?>
	</body>
</html>